# @Author: TonghuiWu
# @Date:   2019-01-09 16:14:11
# @Last Modified by:   TonghuiWu
# @Last Modified time: 2019-01-09 16:20:10
# @E-mail: wutonghui22@163.com

from django.urls import path, re_path

from .views import CourseListView, CourseDetailView, CourseInfoView

urlpatterns = [
    # 课程列表项
    path('list/', CourseListView.as_view(), name='course_list'),

    # 课程详情页
    re_path('detail/(?P<course_id>\d+)/$', CourseDetailView.as_view(), name='course_detail'),

    # 章节信息页
    re_path('info/(?P<course_id>\d+)/$', CourseInfoView.as_view(), name='course_info')
]